package sqlServer;

public class InstalledMenus {
	
	public static final int POSITION_TOP = 1;
	public static final int POSITION_LEFT = 2;
	public static final int POSITION_RIGHT = 3;
	public static final int POSITION_BOTTOM = 4;
	public static final int MENU_POSITION = 5;
	public static final int MAX_SUBCATEGORIES = 6;
	public static final int MENU_FOLDER = 7;
	public static final int MENU_NAME = 8;
	public static final int MENU_DESCRIBE = 9;
	public static final int MENU_PICTUREEXAMPLE = 10;
	public static final int MENU_ID = 11;
	private int id; 
	private String menuPosition;
	private int maxSubcategories;
	private String menuFolder;
	private String menuName;
	private String menuDescribe;
	private String menuPictureExample;
	
	public InstalledMenus() {
		// TODO Auto-generated constructor stub
	}

	public void setMenu(int param, String paramValue){
		switch(param){
		case MENU_POSITION: menuPosition = paramValue; break;
		case MENU_FOLDER: menuFolder = paramValue; break;
		case MENU_NAME: menuName = paramValue; break;
		case MENU_DESCRIBE: menuDescribe = paramValue; break;
		case MENU_PICTUREEXAMPLE: menuPictureExample = paramValue; break;
		}
	}
	
	public void setMenu(int param, int paramValue){
		switch(param){
		case MENU_ID: id = paramValue; break;
		case MAX_SUBCATEGORIES: maxSubcategories = paramValue; break;
		}
	}
	public String getParam(int param){
		String paramValue = null;
		switch(param){
		case MENU_POSITION: paramValue = menuPosition ; break;
		case MENU_FOLDER: paramValue = menuFolder; break;
		case MENU_NAME: paramValue = menuName; break;
		case MENU_DESCRIBE: paramValue = menuDescribe; break;
		case MENU_PICTUREEXAMPLE: paramValue = menuPictureExample; break;
		case MENU_ID: paramValue = Integer.toString(id); break;
		case MAX_SUBCATEGORIES: paramValue = Integer.toString(maxSubcategories); break;
		}
		return paramValue;
	}
	
	public String toString() { 
		return menuPosition;
    }
	
}
